<template>
  <view class="refuse">
    <view class="container">
      <view class="label">
        审核拒绝原因:
      </view>
      <view class="text">
        {{ text }}
      </view>
    </view>
  </view>
</template>
<script setup>
import { ref } from 'vue'
import {onLoad} from "@dcloudio/uni-app";

const text = ref('')

onLoad(() => {
  const pages = getCurrentPages()
  const page = pages[pages.length - 1]
  const eventChannel = page.getOpenerEventChannel();
  eventChannel.on('getReviewData', data => {
    console.log(data)
    const { remark } = data || {}
    text.value = remark
  })
})
</script>
<style scoped lang=less>
.refuse {
  padding: 20rpx 40rpx;
  .container {
    padding: 20rpx;
    font-family: 'ali';
    .label {
      color: #e43d33;
    }
    .text {
      background-color: #ffffff;
      padding: 20rpx;
      min-height: 200rpx;
      margin-top: 20rpx;
      font-weight: 700;
    }
  }
  .back {
    background-color: #fff;
  }
}
</style>
